﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ControlAccessUser.Presenter;

namespace ControlAccessUser.Tests
{
    public class MockLoginView:ILoginView
    {

        public string UserNameLogin
        {
            get;
            set;
        }

        public string UserPasswordLogin
        {
            get;
            private set;
        }

        public bool UserNameIsValid
        {
            get;
            set;
        }


        public string UserNameLoginChanged
        {
            get;
            set;
        }
        

        public Model.User RegisteredUser
        {
            set;
            get;
        }

        public Model.User UserVerify
        {
            get;
            set;
        }

        public string SystemMessage
        {
            get;
            set;
        }
        
        public void userEnterHisData()
        {
            UserNameLogin = "gary";
            UserPasswordLogin = "123456";
        }

        public string ErrorMessageValue { get; set; }
        public void ErrorMessage(string message)
        {
            ErrorMessageValue = message;
        }

        public void GoPrincipalWindow(Model.User user)
        {
            RegisteredUser = user;
        }

        public void EnterUserNameCorrect()
        {
            UserNameLogin = "userNameSinEspacio";
            UserPasswordLogin = "123456";          
        }

        public void EnterUserNameIncorrect()
        {
            UserNameLogin = "UserName con espacio";
            UserNameLoginChanged = "";
        }

        public void EnterUserNameAndPasswordToLogout()
        {
            UserNameLogin = "gary";
            UserPasswordLogin = "123456";
        }

        public void UserEnterHisDataLogginModeSystemLogin()
        {
            UserNameLogin = "gary";
            UserPasswordLogin = "123456";
        }
    }
}